package com.sugar.subscribe.course.module.business.service.coachcomment;

import java.util.*;
import javax.validation.*;
import com.sugar.subscribe.course.module.business.controller.admin.coachcomment.vo.*;
import com.sugar.subscribe.course.module.business.controller.app.coachcomment.vo.AppCoachCommentPageReqVO;
import com.sugar.subscribe.course.module.business.controller.app.coachcomment.vo.AppCoachCommentRespVO;
import com.sugar.subscribe.course.module.business.controller.app.coachcomment.vo.AppCoachCommentSaveReqVO;
import com.sugar.subscribe.course.module.business.dal.dataobject.coachcomment.CoachCommentDO;
import com.sugar.subscribe.course.framework.common.pojo.PageResult;
import com.sugar.subscribe.course.framework.common.pojo.PageParam;

/**
 * 评论 Service 接口
 *
 * @author Ysugar
 */
public interface CoachCommentService {

    /**
     * 创建评论
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Long createCoachComment(@Valid CoachCommentSaveReqVO createReqVO);

    /**
     * 更新评论
     *
     * @param updateReqVO 更新信息
     */
    void updateCoachComment(@Valid CoachCommentSaveReqVO updateReqVO);

    /**
     * 删除评论
     *
     * @param id 编号
     */
    void deleteCoachComment(Long id);

    /**
    * 批量删除评论
    *
    * @param ids 编号
    */
    void deleteCoachCommentListByIds(List<Long> ids);

    /**
     * 获得评论
     *
     * @param id 编号
     * @return 评论
     */
    CoachCommentDO getCoachComment(Long id);

    /**
     * 获得评论分页
     *
     * @param pageReqVO 分页查询
     * @return 评论分页
     */
    PageResult<CoachCommentRespVO> getCoachCommentPage(CoachCommentPageReqVO pageReqVO);

    void auditCoachComment(@Valid CoachCommentAuditReqVO auditReqVO);

    void appCreateCoachComment(AppCoachCommentSaveReqVO createReqVO, Long userId);

    void appDeleteCoachComment(Long id, Long userId);

    PageResult<AppCoachCommentRespVO> appGetCoachCommentPage(AppCoachCommentPageReqVO pageReqVO, Long userId);

    void likeComment(Long id, Long userId);

    PageResult<AppCoachCommentRespVO> appCoachGetCoachCommentPage(PageParam pageParam, Long coachId);
}